<style lang="less" scoped>
.panel {
  background: white;
  margin-bottom: 10px;
  &-title {
    display: flex;
    padding: 10px;
    border-bottom: 0.1px solid #eaeaea;
    &__label {
      flex: 1;
      font-size: 16px;
      align-items: center;
    }
  }
  &-content {
    padding-bottom: 10px;
    &__item {
      display: flex;
      padding: 10px 10px 0 10px;
      font-size: 14px;
      &-label {
        color: #666;
      }
      &-value {
        flex: 1;
        padding-left: 15px;
        color: #333;
      }
    }
  }
}
</style>

<template>
  <div class="panel">
    <!-- title -->
    <div class="panel-title" v-if="item.left">
      <div class="panel-title__label">{{item.left}}</div>
      <div class="panel-title__right">{{item.right}}</div>
    </div>
    <!-- content -->
    <div class="panel-content">
      <div class="panel-content__item" v-for="(item, index) in item.children" :key="index">
        <div class="panel-content__item-label" v-html="item.left"></div>
        <div class="panel-content__item-value">{{item.content}}</div>
        <div class="panel-content__item-right">{{item.right}}</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['item'],
  data() {
    return {};
  }
};
</script>
